package org.example.config.domain;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"操作成功"),
    LOGIN_ERROR(20000,"登录失败"),
    LOGIN_SUCCESS(20001,"登录成功"),

    PHONE_ERROR(20002,"手机号格式不正确"),
    PHONE_HAVE_EXIST(20003,"手机号已经存在"),

    NOT_FOUND_USER(20005,"没有这个用户"),
    PASSWORD_ERROR(20006,"  密码错误"),
    FAIL(10000,"操作失败");

    private Integer code;
    private String message;

    ResultCodeEnum(Integer code,String message) {
        this.code = code;
        this.message = message;
    }
}
